package com.equipment.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-03-27 8:56
 **/
@TableName("equipment_info")
public class EquipmentInfo extends Model<EquipmentInfo> {
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@TableId(type = IdType.AUTO)
	private int id;
	private String equipmentCode;
	private String equipmentIp;
	private Timestamp startTime;
	private Timestamp endTime;
	private Timestamp runTime;
	private int runCount;
	private int runState;
	private Timestamp created;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEquipmentCode() {
		return equipmentCode;
	}

	public void setEquipmentCode(String equipmentCode) {
		this.equipmentCode = equipmentCode;
	}

	public String getEquipmentIp() {
		return equipmentIp;
	}

	public void setEquipmentIp(String equipmentIp) {
		this.equipmentIp = equipmentIp;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Timestamp getRunTime() {
		return runTime;
	}

	public void setRunTime(Timestamp runTime) {
		this.runTime = runTime;
	}

	public int getRunCount() {
		return runCount;
	}

	public void setRunCount(int runCount) {
		this.runCount = runCount;
	}

	public int getRunState() {
		return runState;
	}

	public void setRunState(int runState) {
		this.runState = runState;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	@Override
	public String toString() {
		return "EquipmentInfo{" +
				"id=" + id +
				", equipmentCode='" + equipmentCode + '\'' +
				", equipmentIp='" + equipmentIp + '\'' +
				", startTime=" + startTime +
				", endTime=" + endTime +
				", runTime=" + runTime +
				", runCount=" + runCount +
				", runState=" + runState +
				", created=" + created +
				'}';
	}
}
